/**
 * 通用混合
 * */
 import { rbacmenumenuclick  } from '@api/menuclick';
export default {
    methods: {
        // 当 $route 更新时触发
        appRouteChange (to, from) {
            // console.log(to,'to')
            if (to.path !== '/login' &&to.path!=='/powersetting/powersetting' &&to.path!=='/powersetting/peoplesetting'&&to.path!=='/systemsetting/project'&&to.path!=='/systemsetting/module'&&to.path!=='/systemsetting/VPSsetting'&&to.path!=='/systemsetting/projectsetting'
            &&to.path!=='/systemsetting/materialsetting' &&to.path!=='/systemsetting/menussetting'&&to.path!=='/systemsetting/actionsetting'&&to.path!=='/systemsetting/defaultrolesetting'&&to.path!=='/powersetting/menuClick'
            ) {
                let params = {
                    menu_name: to.meta.title,
                    // menu_route: to.path
                }
                setTimeout(() => {
                    rbacmenumenuclick(params).then(() => {}).catch(() => {})
                },1000)
            }
        }
    }
}
